package com.qububu.emporium.goods.dto;

import com.qububu.emporium.goods.dto.GoodsAboutDto.GoodsType;
import com.qububu.utils.SystemUtil;


public class GoodsInfoDto {

	private String goodsId;
	
	private String goodsName;
	
	private String goodsPicUrl;
	
	private String goodsPrice;
	
	private int goodsUseNum;
	
	private String goodsPromise;
	
	private int goodsPoint;
	
	private String goodsSummaryPicUrls;
	
	private String goodsDetailsUrl;
	
	private GoodsType goodsType;

	private GoodsStatus goodsStatus;

	/**
	 *  得到加密的goodsId
	 */
	public GoodsInfoDto(String goodsId){
		this.goodsId = goodsId;
	}
	
	/**
	 *  得到未加密的goodsId
	 */
	public GoodsInfoDto(long goodsId){
		this.goodsId = SystemUtil.encrypt(String.valueOf(goodsId));
	}
	
	public GoodsType getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(GoodsType goodsType) {
		this.goodsType = goodsType;
	}
	
	public String getGoodsId() {
		return goodsId;
	}
	
	public String getGoodsName() {
		return goodsName;
	}
	
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	
	public String getGoodsPicUrl() {
		return goodsPicUrl;
	}
	
	public void setGoodsPicUrl(String goodsPicUrl) {
		this.goodsPicUrl = goodsPicUrl;
	}
	
	public String getGoodsPrice() {
		return goodsPrice;
	}
	
	public void setGoodsPrice(String goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	
	public int getGoodsUseNum() {
		return goodsUseNum;
	}
	
	public void setGoodsUseNum(int goodsUseNum) {
		this.goodsUseNum = goodsUseNum;
	}
	
	public String getGoodsPromise() {
		return goodsPromise;
	}
	
	public void setGoodsPromise(String goodsPromise) {
		this.goodsPromise = goodsPromise;
	}
	
	public int getGoodsPoint() {
		return goodsPoint;
	}
	
	public void setGoodsPoint(int goodsPoint) {
		this.goodsPoint = goodsPoint;
	}
	
	public String getGoodsSummaryPicUrls() {
		return goodsSummaryPicUrls;
	}
	
	public void setGoodsSummaryPicUrls(String goodsSummaryPicUrls) {
		this.goodsSummaryPicUrls = goodsSummaryPicUrls;
	}
	
	public String getGoodsDetailsUrl() {
		return goodsDetailsUrl;
	}
	
	public void setGoodsDetailsUrl(String goodsDetailsUrl) {
		this.goodsDetailsUrl = goodsDetailsUrl;
	}

	public GoodsStatus getGoodsStatus() {
		return goodsStatus;
	}

	public void setGoodsStatus(GoodsStatus goodsStatus) {
		this.goodsStatus = goodsStatus;
	}
}
